package com.feng.controller.front;

import com.feng.dto.OnlineDto;
import com.feng.service.OnlineService;
import com.feng.vo.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 丰
 * @date: 2023/1/1 16:09
 */
@RestController
@RequestMapping("/front/online")
@Api(tags = "前台反馈接口")
public class FrontOnlineController {

    @Autowired
    private OnlineService onlineService;

    @ApiOperation("添加")
    @PutMapping("/add")
    public ResultVo<Integer> add(@RequestBody OnlineDto onlineDto){
        return onlineService.add(onlineDto);
    }

}
